#include"task.h"
#include"result.h"
 Task::Task():result_(nullptr){}
void  Task:: exec()
 {
    if(nullptr != result_)
    {
       result_->SetVal(run());
    }
    
 }
void Task::SetResult(Result * res)
{
   result_ = res; 
}
